Find the period of each graph